package org.icnmasjid.member.model;
// Generated Apr 21, 2008 6:20:23 PM by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="registration"
 *
 */

public class Registration extends org.icnmasjid.member.model.BaseObject implements java.io.Serializable {


    // Fields

    private Integer id;
    private String ticketNumbers;
    private String firstName;
    private String lastName;
    private String phone;
    private String email;
    private Integer numberTickets;
    private Integer numberKids;
    private Double amtPaid;
    private Double amtPaidAtRegistration;
    private String paymentMethod;
    private String willAttend;
    private String notes;
    private String salesPerson;
    private Boolean checkedIn;
    private Boolean onlinePurchase;

    // transient
    private String sort;


    // Constructors

    /** default constructor */
    public Registration() {
    }


    // Property accessors
    /**
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="id"
     *
     */

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    /**
     *      *            @hibernate.property
     *             column="first_name"
     *             length="100"
     *
     */

    public String getFirstName() {
        return this.firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
    /**
     *      *            @hibernate.property
     *             column="last_name"
     *             length="100"
     *
     */

    public String getLastName() {
        return this.lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
    /**
     *      *            @hibernate.property
     *             column="phone"
     *             length="20"
     *
     */

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    /**
     *      *            @hibernate.property
     *             column="email"
     *             length="100"
     *
     */

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    /**
     *      *            @hibernate.property
     *             column="number_tickets"
     *             length="11"
     *
     */

    public Integer getNumberTickets() {
        return this.numberTickets;
    }

    public void setNumberTickets(Integer numberTickets) {
        this.numberTickets = numberTickets;
    }
    /**
     *      *            @hibernate.property
     *             column="number_kids"
     *             length="11"
     *
     */

    public Integer getNumberKids() {
        return this.numberKids;
    }

    public void setNumberKids(Integer numberKids) {
        this.numberKids = numberKids;
    }
    /**
     *      *            @hibernate.property
     *             column="amt_paid"
     *             length="10"
     *
     */

    public Double getAmtPaid() {
        return this.amtPaid;
    }

    public void setAmtPaid(Double amtPaid) {
        this.amtPaid = amtPaid;
    }
    /**
     *      *            @hibernate.property
     *             column="payment_method"
     *             length="20"
     *
     */

    public String getPaymentMethod() {
        return this.paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }
    /**
     *      *            @hibernate.property
     *             column="will_attend"
     *
     */

    public String getWillAttend() {
        return this.willAttend;
    }

    public void setWillAttend(String willAttend) {
        this.willAttend = willAttend;
    }
    /**
     *      *            @hibernate.property
     *             column="notes"
     *             length="4000"
     *
     */

    public String getNotes() {
        return this.notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }
    /**
     *      *            @hibernate.property
     *             column="sales_person"
     *             length="100"
     *
     */

    public String getSalesPerson() {
        return this.salesPerson;
    }

    public void setSalesPerson(String salesPerson) {
        this.salesPerson = salesPerson;
    }


    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("ticketNumbers").append("='").append(getTicketNumbers()).append("' ");
      buffer.append("firstName").append("='").append(getFirstName()).append("' ");
      buffer.append("lastName").append("='").append(getLastName()).append("' ");
      buffer.append("phone").append("='").append(getPhone()).append("' ");
      buffer.append("email").append("='").append(getEmail()).append("' ");
      buffer.append("numberTickets").append("='").append(getNumberTickets()).append("' ");
      buffer.append("numberKids").append("='").append(getNumberKids()).append("' ");
      buffer.append("amtPaid").append("='").append(getAmtPaid()).append("' ");
      buffer.append("paymentMethod").append("='").append(getPaymentMethod()).append("' ");
      buffer.append("willAttend").append("='").append(getWillAttend()).append("' ");
      buffer.append("notes").append("='").append(getNotes()).append("' ");
      buffer.append("salesPerson").append("='").append(getSalesPerson()).append("' ");
      buffer.append("]");

      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof Registration) ) return false;
		 Registration castOther = ( Registration ) other;

		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getTicketNumbers()==castOther.getTicketNumbers()) || ( this.getTicketNumbers()!=null && castOther.getTicketNumbers()!=null && this.getTicketNumbers().equals(castOther.getTicketNumbers()) ) )
 && ( (this.getFirstName()==castOther.getFirstName()) || ( this.getFirstName()!=null && castOther.getFirstName()!=null && this.getFirstName().equals(castOther.getFirstName()) ) )
 && ( (this.getLastName()==castOther.getLastName()) || ( this.getLastName()!=null && castOther.getLastName()!=null && this.getLastName().equals(castOther.getLastName()) ) )
 && ( (this.getPhone()==castOther.getPhone()) || ( this.getPhone()!=null && castOther.getPhone()!=null && this.getPhone().equals(castOther.getPhone()) ) )
 && ( (this.getEmail()==castOther.getEmail()) || ( this.getEmail()!=null && castOther.getEmail()!=null && this.getEmail().equals(castOther.getEmail()) ) )
 && ( (this.getNumberTickets()==castOther.getNumberTickets()) || ( this.getNumberTickets()!=null && castOther.getNumberTickets()!=null && this.getNumberTickets().equals(castOther.getNumberTickets()) ) )
 && ( (this.getNumberKids()==castOther.getNumberKids()) || ( this.getNumberKids()!=null && castOther.getNumberKids()!=null && this.getNumberKids().equals(castOther.getNumberKids()) ) )
 && ( (this.getAmtPaid()==castOther.getAmtPaid()) || ( this.getAmtPaid()!=null && castOther.getAmtPaid()!=null && this.getAmtPaid().equals(castOther.getAmtPaid()) ) )
 && ( (this.getPaymentMethod()==castOther.getPaymentMethod()) || ( this.getPaymentMethod()!=null && castOther.getPaymentMethod()!=null && this.getPaymentMethod().equals(castOther.getPaymentMethod()) ) )
 && ( (this.getWillAttend()==castOther.getWillAttend()) || ( this.getWillAttend()!=null && castOther.getWillAttend()!=null && this.getWillAttend().equals(castOther.getWillAttend()) ) )
 && ( (this.getNotes()==castOther.getNotes()) || ( this.getNotes()!=null && castOther.getNotes()!=null && this.getNotes().equals(castOther.getNotes()) ) )
 && ( (this.getSalesPerson()==castOther.getSalesPerson()) || ( this.getSalesPerson()!=null && castOther.getSalesPerson()!=null && this.getSalesPerson().equals(castOther.getSalesPerson()) ) );
   }

   public int hashCode() {
         int result = 17;

         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getTicketNumbers() == null ? 0 : this.getTicketNumbers().hashCode() );
         result = 37 * result + ( getFirstName() == null ? 0 : this.getFirstName().hashCode() );
         result = 37 * result + ( getLastName() == null ? 0 : this.getLastName().hashCode() );
         result = 37 * result + ( getPhone() == null ? 0 : this.getPhone().hashCode() );
         result = 37 * result + ( getEmail() == null ? 0 : this.getEmail().hashCode() );
         result = 37 * result + ( getNumberTickets() == null ? 0 : this.getNumberTickets().hashCode() );
         result = 37 * result + ( getNumberKids() == null ? 0 : this.getNumberKids().hashCode() );
         result = 37 * result + ( getAmtPaid() == null ? 0 : this.getAmtPaid().hashCode() );
         result = 37 * result + ( getPaymentMethod() == null ? 0 : this.getPaymentMethod().hashCode() );
         result = 37 * result + ( getWillAttend() == null ? 0 : this.getWillAttend().hashCode() );
         result = 37 * result + ( getNotes() == null ? 0 : this.getNotes().hashCode() );
         result = 37 * result + ( getSalesPerson() == null ? 0 : this.getSalesPerson().hashCode() );
         return result;
   }


public String getSort() {
	return sort;
}


public void setSort(String sort) {
	this.sort = sort;
}


/**
 * @hibernate.property
 * column = "checked_in"
 */
public Boolean getCheckedIn() {
	return checkedIn;
}


public void setCheckedIn(Boolean checkedIn) {
	this.checkedIn = checkedIn;
}

/**
 * @hibernate.property
 * column = "online_purchase"
 */
public Boolean getOnlinePurchase() {
	return onlinePurchase;
}


public void setOnlinePurchase(Boolean onlinePurchase) {
	this.onlinePurchase = onlinePurchase;
}

/**
 * @hibernate.property
 * column = "amt_received"
 */
public Double getAmtPaidAtRegistration() {
	return amtPaidAtRegistration;
}


public void setAmtPaidAtRegistration(Double amtPaidAtRegistration) {
	this.amtPaidAtRegistration = amtPaidAtRegistration;
}

/**
 * @hibernate.property
 * column = "ticket_numbers"
 */
public String getTicketNumbers() {
	return ticketNumbers;
}


public void setTicketNumbers(String ticketNumbers) {
	this.ticketNumbers = ticketNumbers;
}





}
